package com.yu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yu.bean.Project;
import com.yu.dao.ProjectDAO;
import com.yu.service.ProjectService;

@Service
public class ProjectServiceImpl implements ProjectService {

	@Autowired
	private ProjectDAO projectDAO;
	
	@Override
	public int add(Project project) {
		return projectDAO.add(project);
	}

	@Override
	public int update(Project project) {
		return projectDAO.update(project);
	}

	@Override
	public int delete(int id) {
		return projectDAO.delete(id);
	}

	@Override
	public List<Project> getAll() {
		return projectDAO.getAll();
	}

	@Override
	public List<Project> getAllWithEmployee() {
		return projectDAO.getAllWithEmployee();
	}

	@Override
	public Project getById(int id) {
		return projectDAO.getById(id);
	}

}
